package com.resou.reader.reader.autopay;

import com.resou.reader.api.entry.BookDetailBean;
import com.resou.reader.base.BasePresenter;
import com.resou.reader.base.BaseView;
import com.scwang.smartrefresh.layout.SmartRefreshLayout;

import java.util.List;

public interface ContractAutoPay {
    interface AutoPayView extends BaseView {
        /**
         * 显示自动订阅列表
         *
         * @param list
         */
        void showAutoPayList(List<BookDetailBean> list);

        /**
         * 取消自动订阅成功
         */
        void cancellAutoSuccess();

        SmartRefreshLayout getSmartRefreshLayout();
    }

    interface AutoPayPresenter extends BasePresenter {
        /**
         * 查询自动购买列表
         */
        void quearAutoPayList(int page);

        /**
         * 取消自动购买
         *
         * @param bookIds 取消的bookid
         */
        void cancellAutoPay(String bookIds);
    }
}
